package com.itheima.mapper;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface OrderMapper {
    List<Order> page(@Param("number") String number,@Param("beginTime") LocalDateTime beginTime,@Param("endTime") LocalDateTime endTime, @Param("start") Integer start, @Param("pageSize") Integer pageSize);

    int updateStatus(String id, int status);

    long count();

    boolean ClientSubmit(Order order);

    List<Order> getOrderList(@Param("start") Integer start,@Param("pageSize") Integer pageSize);
}
